package com.atguigu.java10;

public class StringTest {
    public static void main(String[] args) {
        char c = '\u2000'; //unicode空白字符
        String str = c+"abc"+c;
        System.out.println(str);
        System.out.println("--------------------");
        System.out.println(str.trim());
        System.out.println("--------------------");
        System.out.println(str.strip());

        System.out.println("--------------------");
        String name = " ";
        System.out.println(name.isBlank());
        System.out.println("--------------------");
        String animal = "Monkey";
        System.out.println(animal.repeat(3));
        System.out.println("--------------------");


    }
}
